Class symantec.itools.db.beans.util.LocalizedValueGenerator
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.util.LocalizedValueGenerator

Object
   |
   +----symantec.itools.db.beans.util.LocalizedValueGenerator

public class LocalizedValueGenerator
extends Object
Class to return localized values depending on the object type. This logic is to be used by Mediators, BindingModel, TableBindingModel etc. So the entire logic has been moved to this class for reuse

Version:
1.0 10/27/98
Author:
Puru Balakrishnan

Variable Index

 o DEFAULT_GROUPING_SIZE
 o PERFORM_LOCALIZATION
variables representing constants
 o debug

Method Index

 o getLocalizationStatus()
 o getNumberFromString(Object, int)
 o isObjToBeLocalized(Object)
Method to determine if localization needs to be performed for this object
 o localizeValue(Object)
Method to return localized object value.
 o localizeValue(Object, int)
Method to return localized object value.

Variables

 o DEFAULT_GROUPING_SIZE
public static final int DEFAULT_GROUPING_SIZE
 o PERFORM_LOCALIZATION
public static final boolean PERFORM_LOCALIZATION
variables representing constants

 o debug
public static final boolean debug

Methods

 o getLocalizationStatus
public static boolean getLocalizationStatus()
 o getNumberFromString
protected static java.lang.Number getNumberFromString(Object objSwitch,
                                                      int toDataType)
 o isObjToBeLocalized
public static boolean isObjToBeLocalized(Object objVal)
Method to determine if localization needs to be performed for this object

Parameters:
Object - value to be localized
Returns:
boolean indicating true or false
 o localizeValue
public static java.lang.Object localizeValue(Object inputVal)
Method to return localized object value. Note: This method is called from Mediator or BindingModel where there is no knowledge about the data type. The localization is to be done depending upon the type of Java Object.

Parameters:
Object - value to be localized
Returns:
localized object value
 o localizeValue
public static java.lang.Number localizeValue(Object value,
                                             int toDataType)
Method to return localized object value. Note: This method is called from BaseRecordDefinition where the data type is known.

Parameters:
Object - value to be localized
Returns:
localized object value

All Packages  Class Hierarchy  This Package  Previous  Next  Index